<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>基础信息</title>
    @@include('../components/css.html')
    <link type="text/css" href="../../css/index.css" rel="stylesheet">
    <link type="text/css" href="../../css/eGovernmentThesauri.css" rel="stylesheet">
</head>
<body>
@@include('../components/header.html')
<div class="title-wrap">
    <div class="title-middle">
        <h2 id="title" class="clearfix fl">基础信息</h2>
        <p class="search-con fr">
            <input class="search-txt" type="text" placeholder="在结果中搜索">
            <i class="search-ico iconfont icon-sousuo" onclick='filterListBySearch()'></i>
        </p>
    </div>
</div>
<div class="main">
    <div class="content-wrap clearfix">
        <div class="fl pt10">
            <div class='left-bar' id="tree">
            </div>
            <script id="tree-template" type="text/x-handlebars-template">
                {{#each data}}
                <div class="one-catalog">
                    <a class="clickable" id="{{id}}" title="{{name}}" onclick="treeClick(1,{{code}},this)"><i class="icon iconfont icon-tbegin {{getIcon name}}"></i><span>{{name}}</span><i class="icon iconfont icon-arrow-t"></i></a>
                </div>
                {{/each}}
            </script>
        </div>
        <div class="list-con fl">
            <div id="list-wrap" class="list-wrap">
                <div class="sort-wrap clearfix">
                    <ul class="sort-list-wrap fl">
                        <li class="sort-item active">按发布时间<i class="sort-ico"></i></li>
                        <li class="sort-item">按访问量<i class="sort-ico"></i></li>
                    </ul>
                    <p class="result fr">为您找到<span class="result-count">0</span>条记录</p>
                </div>
                <div id="list-wrap1"></div>
            </div>
            <script id="list-wrap1-template" type="text/x-handlebars-template">
                {{#if data}}
                <ul class="list-item-wrap">
                    {{#each data}}
                    <li class="list-item">
                        <div class="title-wrap">
                            <a href="../directory/directory-resources-details.html?id={{id}}" class="title" target="_blank" title='{{name}}'>{{name}}</a>
                        </div>
                        <div class="info-wrap clearfix">
                            <div class="details-wrap fl">
                                <p class="briefly" title='{{absractinfo}}'>{{handleEmpty absractinfo "--"}}</p>
                                <ul class="info-resources clearfix">
                                    <li class="provider">
                                        <span class="info-label">信息资源提供方：</span>
                                        <span class="info-value" title="{{providedept}}">{{handleEmpty providedept "--"}}</span>
                                    </li>
                                    <li class="catalog">
                                        <span class="info-label">信息资源目录：</span>
                                        <span class="info-value" title="{{providedeptchild}}">{{handleEmpty providedeptchild "--"}}</span>
                                    </li>
                                    <li class="type">
                                        <span class="info-label">共享方式：</span>
                                        <span class="info-value">{{handleSharedMode shartype}}</span>
                                    </li>
                                    <li class="publish-time">
                                        <span class="info-label">发布时间：</span>
                                        <span class="info-value">{{handleEmpty createtime "--"}}</span>
                                    </li>
                                </ul>
                            </div>
                            {{#if ../isLogin}}
                            <div class="operation-wrap fr">
                                <button class="btn collection {{isCollection collectionstatus 0}}" onclick='changeCollectionState({{id}},1)'><i class="iconfont icon-L1"></i>收藏</button>
                                <button class="btn collection cancel-collection {{isCollection collectionstatus 1}}" onclick='changeCollectionState({{id}},0)'>取消收藏</button>

                                <a class="btn apply {{isApply subscriptionstatus 0}}" href="../directory/directory-apply.html?id={{id}}"><i class="iconfont icon-shenqing"></i>申请</a>
                                <button class="btn apply cancel-apply {{isApply subscriptionstatus 1}}" onclick='changeApplyState({{id}})'>取消申请</button>
                            </div>
                            {{else}}
                            <div class="operation-wrap unlogin fr">
                                <button class="btn collection"><i class="iconfont icon-L1"></i>收藏</button>

                                <a class="btn apply" href="javascript:void(0);"><i class="iconfont icon-shenqing"></i>申请</a>
                            </div>
                            {{/if}}
                        </div>
                        <ul class="statistics-wrap clearfix">
                            <li class="statistics-visit">
                                <i class="iconfont icon-chakan"></i>
                                <p class="label-wrap">
                                    <span class="statistics-label">访问量：</span>
                                    <span class="statistics-value visit">{{handleEmpty accesscount 0}}</span>
                                </p>
                            </li>
                            <li class="statistics-use">
                                <i class="iconfont icon-jigoushuju"></i>
                                <p class="label-wrap">
                                    <span class="statistics-label">使用量：</span>
                                    <span class="statistics-value visit">0</span>
                                </p>
                            </li>
                            <li class="statistics-data">
                                <i class="iconfont icon-shujuliang"></i>
                                <p class="label-wrap">
                                    <span class="statistics-label">数据量：</span>
                                    <span class="statistics-value visit">0</span>
                                </p>
                            </li>
                        </ul>
                    </li>
                    {{/each}}
                </ul>
                {{else}}
                <p class="no-server">
                    <span class="no-server-txt">暂无数据</span>
                </p>
                {{/if}}
            </script>
            <div class="page-wrap clearfix">
                <div class="pagination fr clearfix"></div>
                <span class="total-count fr">共0页，每页0条</span>
            </div>
        </div>
    </div>
</div>
@@include('../components/footer.html')
</body>
@@include('../components/js.html')
<script src="../../js/common/jquery.pagination.js"></script>
<script type="text/javascript" src="../../js/baseinfo/index.js"></script>
</html>